package com.acc.mobileappr.scheduler.jobs;

import org.apache.log4j.Logger;
import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;

import java.util.Date;

/**
 * Removes document as scheduled
 * Abiel@ICN
 */
public class DeleteDocumentJob implements Job {

    static final Logger logger = Logger.getLogger(NewDocumentJob.class);


    /**
     * Execute Job
     *
     * @param jobExecutionContext  job execution context
     * @throws JobExecutionException  job execution exception
     */
    public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException {

        System.out.println("->>> Delete document job executed on" + new Date());
        runProcess();
    }


    /**
     * Run process
     */
    public void runProcess(){
      logger.debug("begin process");
    }


}
